
package com.sxkj.service.version;

import com.github.pagehelper.PageInfo;
import com.sxkj.entity.entity.version.VersionFile;
import com.sxkj.entity.mapper.version.VersionFileMapper;
import com.sxkj.service.base.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author Zhang Xingliang
 *
 * @description: 秤更新包文件
 * @date 2019-12-31 13:25:41
 */
@Service
public class VersionFileService extends BaseService<VersionFileMapper,VersionFile> {

	/**
	* 获取单条数据
	* @param id
	* @return VersionFile
	*/
	public VersionFile get(String id) throws Exception{
		return super.get(id);
	}
	
	/**
	* 获取单条数据
	* @param versionFile
	* @return VersionFile
	*/
	public VersionFile get(VersionFile versionFile) throws Exception{
		return super.get(versionFile);
	}
	
	/**
	* 查询列表数据
	* @param versionFile
	* @return List<VersionFile>
	*/
	public List<VersionFile> findList(VersionFile versionFile) throws Exception{
		return super.findList(versionFile);
	}

	/**
	* 查询分页数据
	* @param versionFile
	* @param pageSize
	* @param pageNum
	* @return Page
	*/
	public PageInfo findPage(VersionFile versionFile, Integer pageSize, Integer pageNum) throws Exception{
		return super.findPage(versionFile, pageSize, pageNum);
	}

	/**
	* 保存数据（插入或更新）
	* @param versionFile
	*/
	@Transactional(rollbackFor = Exception.class)
	public void save(VersionFile versionFile) throws Exception{
		super.save(versionFile);
	}

	/**
	* 删除数据
	* @param versionFile
	*/
	@Transactional(rollbackFor = Exception.class)
	public void delete(VersionFile versionFile) throws Exception{
		super.delete(versionFile);
	}
}